package com.simple.jdbc.core.utils;

import java.util.ArrayList;
import java.util.List;

public class ParameterMappingTokenHandler implements TokenHandler{

    private List<ParameterMapping> parameterMappings = new ArrayList<ParameterMapping>();


    @Override
    public String handleToken(String content) {

        parameterMappings.add(buildParameterMapping(content));

        return "?";
    }

    private ParameterMapping buildParameterMapping(String content) {

        ParameterMapping parameterMapping = new ParameterMapping(content);

        return parameterMapping;
    }

    public List<ParameterMapping> getParameterMappings() {
        return parameterMappings;
    }
}
